# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=vnak
pkgver=1.cf0fda7
pkgrel=8
epoch=1
pkgdesc='Aim is to be the one tool a user needs to attack multiple VoIP protocols.'
url='https://www.isecpartners.com/vnak.html'
groups=('blackarch' 'blackarch-voip')
license=('GPL')
arch=('any')
depends=('python' 'python2-dpkt' 'python2-pypcap')
makedepends=('git')
source=("git+https://github.com/BlackArch/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

prepare() {
  cd $pkgname

  sed -i '1s/$/2/' *.py
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/$pkgname/" README.txt
}

